<div id='cssmenu'>

    <ul>
        <li><?php echo $this->Html->link(__('MENU_HOME'), '/Pages/home') ?></li>
        <li class='has-sub'><?php echo $this->Html->link(__('MENU_ABOUT'), '/Pages/about') ?>
            <ul>
                <li class='has-sub'><?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_ABOUT'), '/Pages/about', array('escape' => false)) ?></li>
                <li class='has-sub'><?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_SERVICES'), '/Pages/services', array('escape' => false)) ?></li>
            </ul>
        </li>
        <li class='has-sub'><?php echo $this->Html->link(__('MENU_RESIDENTIAL'), '#') ?>
            <ul>
                <li class='has-sub'>
                    <?php
                    echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('NEW PROJECT'), '/Projects?projectTypeId=' . TYPE_NEW . '&propertyId=' . RESIDENTIALL_ID . '&search=false', array('escape' => false))
                    ?>
                    <ul>
                        <?php $pMenu = $this->Session->read('Project_residen_new'); ?>
                        <?php foreach ($pMenu as $a): ?>
                            <li>
                                <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . $a['ProjectDetail'][0]['title'], '/Projects/view/' . $a['ProjectDetail'][0]['project_id'], array('escape' => false)) ?>
                            </li>
                        <?php endforeach; ?>     
                    </ul>
                </li>

                <li class='has-sub'>
                    <?php
                    echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('RESALE'), '/Projects?projectTypeId=' . TYPE_RESALE . '&propertyId=' . RESIDENTIALL_ID . '&search=false', array('escape' => false))
                    ?>
                    <ul>
                        <li><?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('HOUSE'), '/Residentials/type/2/1/11?protype=resale&proper=residential&properType=house', array('escape' => false)) ?></li>
                        <li><?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('DETACHBD HOUSE'), '/Residentials/type/2/1/10?protype=resale&proper=residential&properType=detachedhouse', array('escape' => false)) ?></li>
                        <li><?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('CONDOMINIUM'), '/Residentials/type/2/1/1?protype=resale&proper=residential&properType=condominium', array('escape' => false)) ?></li>
                    </ul>
                </li>
            </ul>
        </li>
        <li class='has-sub'><?php echo $this->Html->link(__('MENU_COMMERCIAL'), '/Projects/index?type=commercial') ?>
            <ul>
                <li class='has-sub'>
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('NEW PROJECT'), '#', array('escape' => false)) ?>
                    <ul>
                        <?php $newCommer = $this->Session->read('Project_commercial_new'); ?>
                        <?php foreach ($newCommer as $a): ?>
                            <li>
                                <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . $a['ProjectDetail'][0]['title'], '/Projects/view/' . $a['ProjectDetail'][0]['project_id'], array('escape' => false)) ?>
                            </li>
                        <?php endforeach; ?>     
                    </ul>
                </li>
                <li class='has-sub'>
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('RESALE'), '#', array('escape' => false)) ?>
                </li>
            </ul>
        </li>
        <li class='has-sub'>  
            <?php echo $this->Html->link(__('MENU_LANDS_INVESTMENT'), '#') ?>
            <ul>
                <li class="has-sub">
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_WANT_BUY_RENT'), '/Projects/search', array('escape' => false)) ?>
                </li>
                <li class="has-sub">
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_LANDS'), '/Projects/index?type=lands&id=4', array('escape' => false)) ?>
                </li>
                <li class="has-sub">
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_HOTELS'), '/Projects/index?type=hotels&id=99', array('escape' => false)) ?>
                </li>
                <li class="has-sub">
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_OFFICES_BUILDINGS'), '/Projects/index?type=offices&id=5', array('escape' => false)) ?>
                </li>
                <li class="has-sub">
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_CONDOMINIUMS'), '/Projects/index?type=condominiums&id=1', array('escape' => false)) ?>
                </li>
                <li class="has-sub">
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_APARTMENTS'), '/Projects/index?type=appartments&id=3', array('escape' => false)) ?>
                </li>
                <li class="has-sub">
                    <?php echo $this->Html->link('<i class="icon-arrow-right-5"></i>' . __('MENU_OTHERS'), '/Projects/index?type=others&id=0', array('escape' => false)) ?>
                </li>
            </ul>
        </li>
        <li class='has-sub'><?php echo $this->Html->link(__('Sell/Rent/Buy'), '/Careers/index') ?></li>
        <li class='has-sub'>  
            <?php echo $this->Html->link(__('MENU_CONTACT'), '/CustomerContacts') ?>
            <ul>
                <li class="has-sub">
                    <?php echo $this->Html->link(__('MENU_CONTACT'), '/CustomerContacts') ?>
                </li>
                <li class="has-sub">
                    <?php echo $this->Html->link(__('MENU_CAREERS'), '/Careers/index') ?>
                </li>
            </ul>
        </li>
    </ul>
</div>